import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import sys

df = pd.DataFrame([[170, 1700],
                  [175, 1750],
                  [180, 1800]],
                  index=list('ABC'),
                  columns=['cm', 'mm'])
print(df)

path = sys.argv[0] + '.tmp.csv'
df.to_csv(path)

df2 = pd.read_csv(path, header=0, index_col=0)  # ATTENTION
print(df2)
